Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

SqlClient minor memory improvements #34134

Merged
merged 6 commits into from
Jan 16, 2019

Conversation

Wraith2
Copy link
Contributor

@Wraith2 Wraith2 commented Dec 18, 2018

Some work was done in #34047 to limit allocation of closures and move to explicit state passing for continuations. This PR continues/finishes that work and cleans up some of the async code to be more readable.

AsyncHelper had a few methods which took unused parameters, either internal or external connections, with names that indicated those connections were going to be closed. The parameters were never used. I judged these to be dead code and eliminated the parameters and all call sites using them.

the function ContinueTaskPend was removed as dead code with no callers.

I recommend looking at the changes side by side, the inline diff makes them look confusing

/cc @saurabh500 @afsanehr @keeratsingh

Copy link
Contributor

@saurabh500 saurabh500 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good to me. Left some Nit: comments.

@Wraith2
Copy link
Contributor Author

Wraith2 commented Jan 9, 2019

@dotnet-bot test Windows x86 Release Build please

@saurabh500
Copy link
Contributor

@Wraith2 There are some merge conflicts now. Can you take care of this?

@Wraith2
Copy link
Contributor Author

Wraith2 commented Jan 10, 2019

Done.

@AfsanehR-zz AfsanehR-zz merged commit abd0482 into dotnet:master Jan 16, 2019
@Wraith2 Wraith2 deleted the sqlperf-asynchelper branch January 17, 2019 00:49
JRahnama pushed a commit to JRahnama/SqlClient that referenced this pull request Sep 5, 2019
…rovements

Port PR343134 from corefx
dotnet/corefx#34134

There are tiny differences between this PR and the one in CoreFx as I had to modify the changes for the AE code which exists in SCOOB and not in dotnet/Corefx.
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
SqlClient minor memory improvements

Commit migrated from dotnet/corefx@abd0482
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants